using System;
using System.Collections.Generic;

namespace Viettel.VOFFICE.DAO.Models
{
    public class Node
    {
        public Node()
        {
            this.NodeRelations = new List<NodeRelation>();
            this.NodeRelations1 = new List<NodeRelation>();
            this.NodeUsers = new List<NodeUser>();
            this.Todos = new List<Todo>();
        }

        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public int FlowId { get; set; }
        public Nullable<System.Guid> RoleId { get; set; }
        public bool IsDocNode { get; set; }
        public Nullable<bool> IsStart { get; set; }
        public System.DateTime CreatedAt { get; set; }
        public System.DateTime UpdatedAt { get; set; }
        public Nullable<System.Guid> CreatorId { get; set; }
        public virtual aspnet_Roles aspnet_Roles { get; set; }
        public virtual Flow Flow { get; set; }
        public virtual ICollection<NodeRelation> NodeRelations { get; set; }
        public virtual ICollection<NodeRelation> NodeRelations1 { get; set; }
        public virtual ICollection<NodeUser> NodeUsers { get; set; }
        public virtual ICollection<Todo> Todos { get; set; }
    }
}
